<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>jsp2p: it.saccosilvestri.jsp2p.utility.FileUtility Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">jsp2p
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('classit_1_1saccosilvestri_1_1jsp2p_1_1utility_1_1_file_utility.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">it.saccosilvestri.jsp2p.utility.FileUtility Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="it::saccosilvestri::jsp2p::utility::FileUtility" -->
<p><a href="classit_1_1saccosilvestri_1_1jsp2p_1_1utility_1_1_file_utility-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classit_1_1saccosilvestri_1_1jsp2p_1_1utility_1_1_file_utility.html#aab13a11d048dd52812c8b3b5c9193ffe">saveKeyToFile</a> (String fileName, BigInteger mod, BigInteger exp)  throws IOException </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Salva una chiave su file.  <a href="#aab13a11d048dd52812c8b3b5c9193ffe"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static KeyPair&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classit_1_1saccosilvestri_1_1jsp2p_1_1utility_1_1_file_utility.html#ae623758a16014c060c21b22113b767d4">readKeysFromFiles</a> (String publicKeyFileName, String privateKeyFileName)  throws IOException </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Recupera chiave pubblica e privata da un file.  <a href="#ae623758a16014c060c21b22113b767d4"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><dl class="author"><dt><b>Author:</b></dt><dd>Sacco Cosimo &amp; Silvestri Davide </dd></dl>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ae623758a16014c060c21b22113b767d4"></a><!-- doxytag: member="it::saccosilvestri::jsp2p::utility::FileUtility::readKeysFromFiles" ref="ae623758a16014c060c21b22113b767d4" args="(String publicKeyFileName, String privateKeyFileName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static KeyPair it.saccosilvestri.jsp2p.utility.FileUtility.readKeysFromFiles </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>publicKeyFileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>privateKeyFileName</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>  throws IOException <code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Recupera chiave pubblica e privata da un file. </p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classit_1_1saccosilvestri_1_1jsp2p_1_1utility_1_1_file_utility_ae623758a16014c060c21b22113b767d4_icgraph.png" border="0" usemap="#classit_1_1saccosilvestri_1_1jsp2p_1_1utility_1_1_file_utility_ae623758a16014c060c21b22113b767d4_icgraph" alt=""/></div>
<map name="classit_1_1saccosilvestri_1_1jsp2p_1_1utility_1_1_file_utility_ae623758a16014c060c21b22113b767d4_icgraph" id="classit_1_1saccosilvestri_1_1jsp2p_1_1utility_1_1_file_utility_ae623758a16014c060c21b22113b767d4_icgraph">
<area shape="rect" id="node3" href="classit_1_1saccosilvestri_1_1jsp2p_1_1test_1_1_peer.html#a5c84d0215254ede0666e83d6345643c1" title="Recupera il certificato della CA ed il certificato e le chiavi (pubblica e privata) del peer..." alt="" coords="411,5,645,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aab13a11d048dd52812c8b3b5c9193ffe"></a><!-- doxytag: member="it::saccosilvestri::jsp2p::utility::FileUtility::saveKeyToFile" ref="aab13a11d048dd52812c8b3b5c9193ffe" args="(String fileName, BigInteger mod, BigInteger exp)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void it.saccosilvestri.jsp2p.utility.FileUtility.saveKeyToFile </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>fileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BigInteger&#160;</td>
          <td class="paramname"><em>mod</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BigInteger&#160;</td>
          <td class="paramname"><em>exp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>  throws IOException <code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Salva una chiave su file. </p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classit_1_1saccosilvestri_1_1jsp2p_1_1utility_1_1_file_utility_aab13a11d048dd52812c8b3b5c9193ffe_icgraph.png" border="0" usemap="#classit_1_1saccosilvestri_1_1jsp2p_1_1utility_1_1_file_utility_aab13a11d048dd52812c8b3b5c9193ffe_icgraph" alt=""/></div>
<map name="classit_1_1saccosilvestri_1_1jsp2p_1_1utility_1_1_file_utility_aab13a11d048dd52812c8b3b5c9193ffe_icgraph" id="classit_1_1saccosilvestri_1_1jsp2p_1_1utility_1_1_file_utility_aab13a11d048dd52812c8b3b5c9193ffe_icgraph">
<area shape="rect" id="node3" href="classit_1_1saccosilvestri_1_1jsp2p_1_1certification_authority_1_1_certification_authority.html#acac40170eef762342866fedbee961113" title="Genera la chiava pubblica, la chiave privata ed il certificato per il peer i&#45;esimo, firmato dalla CA." alt="" coords="381,5,885,32"/><area shape="rect" id="node5" href="classit_1_1saccosilvestri_1_1jsp2p_1_1test_1_1_trent.html#a03decc1dc7f0fb8a854c0bcda116e6ce" title="Inizializza opportunamente la variabile NUM_PEER e genera un certificato per ogni peer che parteciper..." alt="" coords="933,5,1171,32"/></map>
</div>
</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/it/saccosilvestri/jsp2p/utility/<a class="el" href="_file_utility_8java.html">FileUtility.java</a></li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceit.html">it</a>      </li>
      <li class="navelem"><a class="el" href="namespaceit_1_1saccosilvestri.html">saccosilvestri</a>      </li>
      <li class="navelem"><a class="el" href="namespaceit_1_1saccosilvestri_1_1jsp2p.html">jsp2p</a>      </li>
      <li class="navelem"><a class="el" href="namespaceit_1_1saccosilvestri_1_1jsp2p_1_1utility.html">utility</a>      </li>
      <li class="navelem"><a class="el" href="classit_1_1saccosilvestri_1_1jsp2p_1_1utility_1_1_file_utility.html">FileUtility</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Tue Aug 30 2011 11:01:33 for jsp2p by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
